//
// C++ Implementation: LinkedListException
//
// Description: 
//
//
// Author:  <>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//

#include "LinkedListException.h"

LinkedListException::LinkedListException(const string& msg):exception(),msg(msg) //there's a problem with g++ here ! we should report it (left is a correct version though)
//g++ accepts to compile LinkedListException::LinkedListException(const string& (parameterName msg is expected here):exception(),msg(msg) with no parameter name, and compiles this without any warning
//even in debug mode
//and this creates segfault when exception objects are created before being thrown
//if this may help debugging, in the .h file for this custom exception class, the parameter that this constructor takes is an optional parameter msg=""
{
}

LinkedListException::~LinkedListException() throw()
{}

const char* LinkedListException::what() const throw()
{
	return msg.c_str();
}
